{% extends "listado.html" %}
                {% block titulo %}
        <h4 class="well well-small">Padrón de Bomberos'
        {% if user.is_staff %}
		   <a class="btn btn-primary pull-right" href="/bomberos/padron/agregar/">Agregar</a>
		   <a class="btn btn-primary pull-right" href="/bomberos/padron/imprimir/">Imprimir</a>
        {% endif %}
        </h4>

	{% endblock %}

	{% block table_heading %}
		<th>Id</th>
                  <th>Año</th>
		<th>Bombero</th>
		<th>Asociacion</th>
		<th>Credencial</th>
		<th>Grado</th>
		<th>Cargo</th>
		<th>Nivel</th>
		<th>Último Ascenso</th>
		<th>Fecha Ingreso</th>
		<th>Iapos</th>
		<th>Es Cadete</th>
		<th>Reincorporaciones</th>		
		<th>Observaciones</th>
	{% endblock %}

	{% block item_iteration_row %}
		<td>{% if user.is_authenticated %}
		<a href="{{ item.get_absolute_url }}" target="_blank" onClick="window.open(this.href, this.target, 'width=500,height=450'); return false;">{{item.pk}}</a>
		{% endif %}
		</td>
		<td>{{ item.anio }}</td>
		<td>{{ item.bombero }}</td>
		<td>{{ item.asociacion }}</td>
		<td>{{ item.credencial }}</td>
		<td>{{ item.grado }}</td>
		<td>{{ item.cargo }}</td>
		<td>{{ item.get_nivel_display }}</td>
		<td>{{ item.ultimo_ascenso|date:"d/m/Y" }}</td>
		<td>{{ item.fecha_ingreso|date:"d/m/Y" }}</td>
		<td>{{ item.iapos|yesno:"Si,No" }}</td>
		<td>{{ item.bombero.es_cadete|yesno:"Si,No" }}</td>
		<td>{{ item.reincorporaciones|date:"d/m/Y" }}</td>
		<td>{{ item.observaciones|truncatewords:20 }}</td>
  	{% endblock %}
  	
